package com.menggudf.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="symptom")
public class Symptom implements Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = -3530733351645661476L;
    
    private int id;
    private String symptom; //病症名称
    private Illness illness;
    private String degree;  //程度
    private String nature;  //性质
    private String times;   //次数
    private String medicine;    //用药

    private Double sup;  //体温上限
    private Double sdown; //体温下限
    private String description;
    private String imgurl;
    private String parts;
    
    private String pastHistory;
    private String incentive;
    private String medicineHistory;
    private Integer isImportant;
    private Integer historySort;
    
    private Integer warning;
    private Integer limitSymptoms;
    
    private String factor;
    
    private Integer sex;
    
    @Id
    @Column(name="id",unique=true,nullable=false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    @Column(name="symptom",nullable=false,length=30)
    public String getSymptom() {
        return symptom;
    }
    
    public void setSymptom(String symptom) {
        this.symptom = symptom;
    }
    
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "illnessId", nullable = false)
    public Illness getIllness() {
        return illness;
    }
    public void setIllness(Illness illNess) {
        this.illness = illNess;
    }

    @Column(name="degree")
    public String getDegree() {
        return degree;
    }

    public void setDegree(String degree) {
        this.degree = degree;
    }

    @Column(name="nature")
    public String getNature() {
        return nature;
    }

    public void setNature(String nature) {
        this.nature = nature;
    }

    @Column(name="times")
    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    @Column(name="medicine")
    public String getMedicine() {
        return medicine;
    }

    public void setMedicine(String medicine) {
        this.medicine = medicine;
    }

    @Column(name="sup")
    public Double getSup() {
        return sup;
    }

    public void setSup(Double sup) {
        this.sup = sup;
    }

    @Column(name="sdown")
    public Double getSdown() {
        return sdown;
    }

    public void setSdown(Double sdown) {
        this.sdown = sdown;
    }

    @Column(name="description")
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Column(name="imgurl")
    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    @Column(name="parts")
    public String getParts() {
        return parts;
    }

    public void setParts(String parts) {
        this.parts = parts;
    }

    @Column(name="pastHistory")
    public String getPastHistory() {
        return pastHistory;
    }

    public void setPastHistory(String pastHistory) {
        this.pastHistory = pastHistory;
    }

    @Column(name="incentive")
    public String getIncentive() {
        return incentive;
    }

    public void setIncentive(String incentive) {
        this.incentive = incentive;
    }

    @Column(name="medicineHistory")
    public String getMedicineHistory() {
        return medicineHistory;
    }

    public void setMedicineHistory(String medicineHistory) {
        this.medicineHistory = medicineHistory;
    }

    @Column(name="isImportant")
    public Integer getIsImportant() {
        return isImportant;
    }

    public void setIsImportant(Integer isImportant) {
        this.isImportant = isImportant;
    }

    @Column(name="historySort")
    public Integer getHistorySort() {
        return historySort;
    }

    public void setHistorySort(Integer historySort) {
        this.historySort = historySort;
    }

    @Column(name="warning")
    public Integer getWarning() {
        return warning;
    }

    public void setWarning(Integer warning) {
        this.warning = warning;
    }

    @Column(name="limitSymptoms")
    public Integer getLimitSymptoms() {
        return limitSymptoms;
    }

    public void setLimitSymptoms(Integer limitSymptoms) {
        this.limitSymptoms = limitSymptoms;
    }
    
    @Column(name="factor")
    public String getFactor() {
        return factor;
    }

    public void setFactor(String factor) {
        this.factor = factor;
    }

    @Column(name="sex")
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }    
    
    
}
